#include "StdAfx.h"
#include "portlineedit.h"
#include <QRegExpValidator>
#include <QRegExp>

PortLineEdit::PortLineEdit(QWidget* parent)
   : QLineEdit(parent)
{
   QRegExp regExp("([0-9]{1,5})");
   m_regExpValidator = new QRegExpValidator(regExp, this);
   setValidator(m_regExpValidator);
}

PortLineEdit::~PortLineEdit()
{

}
